package com.wn.ziroom.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wn.ziroom.entity.Room;
import com.wn.ziroom.vo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author wangzhijia
 * @since 2023-02-23 02:27:54
 */
@Mapper
public interface RoomMapper extends BaseMapper<Room> {

    Page<Room> selectByConditionList(Page<Room> roomPage, @Param("streetArr") String[] streetArr,
                                     @Param("startRent") Integer startRent,
                                     @Param("endRent") Integer endRent,
                                     @Param("time") Date time,
                                     @Param("isOrderByArea") String isOrderByArea,
                                     @Param("isOrderByPrice") String isOrderByPrice,
                                     @Param("quartersName") String quartersName
    );

    List<EsRoomVo> selectByEs();

    RoomDetailVo selectRoomDetailAndQuarter(Integer id);

    List<RoomVoo> slectRoomVooByID(Integer id);

    List<RoomVvo> slectRoomVvoByID(Integer id);

    RoomUo selectRoomUoById(Integer id);
}
